package service

import "ylb/entity"

type JobService interface {
	SelectAll(userId uint) []entity.Job
	SelectAllByCollect(userId uint) []entity.Job
	//作用:从今天起,往后推limitDay，where expire <= limitDay
	//参数: 用户id,即将到期 limitDay >= 0,已到期 limitDay < 0
	SelectAllByDayExpire(userId uint, limitDay int) []entity.Job
	SelectAllByClassify(userId uint, classify uint) []entity.Job
	SelectAllByLike(like string) []entity.Job
	Insert(job *entity.Job) int64
	Delete(id uint) int64
	CollectJob(jobId int, collect bool) int64
	//筛选查询
	SelectAllByWhere(userId uint, m map[string]int) []entity.Job
}
